package cn.xt.service.com;

import cn.xt.bean.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ComService {
    //增加评论
    public int addcom(Com com);
    //查看评论
    public List<Com> comlist(Integer id);
    //查看有图评论
     public List<Com> sjhousecom(Integer id);
     //房东回复房客
    public int addhfcom(Hfcom hfcom);
    //房东读取信息
    public int updRead(Integer com_id);
    //房屋图片
    public Fimg fimg(Integer house_id);
    //消息提示
    public int redcom(Integer users_id);
    //收藏
    public int updSc(Integer users_id);
    //添加收藏
   public int addcollocation(Collectionhouse collection);
   //查看收藏
   public Collectionhouse collection(Integer users_id,Integer house_id);
   //取消收藏
    public int updcoll1(Integer users_id,Integer house_id);
    //取消收藏
    public int updcoll2(Integer users_id,Integer house_id);
    //查询我收藏的房屋
    public List<Collectionhouse> mycolllist(@Param("users_id")Integer users_id,@Param("collection") Integer collection);
    //取消收藏
    public int updcoll(@Param("collection_id") Integer collection_id,@Param("users_id") Integer users_id);
    //获得房屋用户和当前用户
    public int countusers(@Param("users_id") Integer users_id,@Param("house_id")Integer house_id);
    //判断用户id和房屋id是否停驶存在
    public int countadd(Integer users_id,Integer house_id);




}
